/* 
 * File:   Voxel.cpp
 * Author: brady
 * 
 * Created on August 28, 2011, 9:42 PM
 */

#include <acceleration/Voxel.h>
#include <acceleration/ShapeList.h>
#include <shapes/Shape.h>
#include <acceleration/BoundingVolumeHierarchy.h>

Voxel::Voxel() {
}

Voxel::Voxel(const Vector3D& minCorner, const Vector3D& maxCorner){
    boundingBox = BoundingBox(minCorner, maxCorner);
    shapes = new BoundingVolumeHierarchy();
}

Voxel::Voxel(const Voxel& orig) {
}

Voxel::~Voxel() {
}

void Voxel::addShapes(vector<Shape*> allShapes){
    for (int i = 0; i<allShapes.size(); i++){
            shapes->addShape(allShapes[i]);
    }
    shapes->finalize();
}